home *** CD-ROM | disk | FTP | other *** search
- Path: pine.netten.net!usenet
- From: trahan <trahan@ebicom.net>
- Newsgroups: comp.lang.c
- Subject: Question:obtaining local ip address
- Date: Tue, 12 Mar 1996 15:06:01 -0600
- Organization: None
- Message-ID: <3145E739.46A8@ebicom.net>
- NNTP-Posting-Host: b2.netten.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- I need to be able to determine the ip address my server assigns me when
- I log on through c or c++. As of yet, the only IP address I can find is
- the host ip address of where I am connecting to on the other end of the
- connection, i.e. gethostbyname. Can someone email me an answer with
- some source code on how to accomplish this task? It is getting quite
- irritating.
-
- email me at trahan@ebicom.net
- Thanks!
-